/**
 * 路由配置/可划分为多模块
 */

export default [
  {
    path: '/user',
    name: 'User',
    component: () => import('@/pages/user'),
    meta: {
      title: '用户管理',
      requireAuth: true
    }
  },
  {
    path: '/user/user_detail',
    name: 'User',
    component: () => import('@/pages/user/user_detail'),
    meta: {
      title: '用户详情',
      requireAuth: true
    }
  },
  {
    path: '/coupon',
    name: 'Coupon',
    component: () => import('@/pages/coupon'),
    meta: {
      title: '已发放优惠券',
      requireAuth: true
    }
  },
  {
    path: '/coupon/list',
    name: 'Coupon',
    component: () => import('@/pages/coupon/coupon_list'),
    meta: {
      title: '优惠券管理',
      requireAuth: true
    }
  },
  {
    path: '/machine',
    name: 'Machine',
    component: () => import('@/pages/machine'),
    meta: {
      title: '洗车机管理',
      requireAuth: true
    }
  },
  {
    path: '/order',
    name: 'Order',
    component: () => import('@/pages/order'),
    meta: {
      title: '订单管理',
      requireAuth: true
    }
  }
]
